/**
 * @param {number[]} nums
 * @param {number} target
 * @return {number}
 */
var searchInsert = function (nums, target) {
    isLargeNumber = (element) => element >= target;
    let temp = nums.findIndex(isLargeNumber)
    //如果是最大的 findIndex返回-1
    return temp == -1 ? nums.length : temp
};